package com.aidong.drawCode.biz.impl;


import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.drawCode.biz.DrawBiz;
import com.aidong.drawCode.dao.DrawDao;
import com.aidong.drawCode.entity.DrawCode;


@Service("drawBiz")
public class DrawBizImple implements DrawBiz {

	@Autowired
	DrawDao drawDao;

	@Override
	public void addDrawCode(DrawCode code){
		drawDao.addDrawCode(code);
	}
	@Override
	public int getDrawCountByNowTime(Date date){
		return drawDao.getDrawCountByNowTime(date);
	}
}
